
import { combineReducers } from 'redux'
import { AGE } from './action.js'

function ageVal(state=18, action) {
  switch (action.type) {
    case AGE:
    return action.ageInfo;
    default:
    return state;
  }
}

const rootReducer = combineReducers({
  ageVal
})

export default rootReducer